﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace web_application
{
    public class users_control
    {
        public bool LogIn(string login, string password)
        {
            usersEntities2 users = new usersEntities2();
            ///
            foreach (var user in users.users)
            {
                if (user.login == login && user.password == password)
                    return true;
            }

            return false;
        }
        //
    }
}